import Router from "koa-router";
import * as userController from "../controllers/user.controller";

const router = new Router({
  prefix: "/api/user",
});

// 登录
router.post('/login', userController.login)

// 注册
router.post('/register', userController.register)

// 退出登陆
router.post("/logout", userController.logout)

// 获取用户信息
router.get('/info', userController.info)

// 改密码
router.get('/changepwd', userController.changepwd)


export default router;